package com.ivan.spring.security.oauth2.controller;

import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Ivan
 * @Title: TestController
 * @date 2021/8/1713:53
 */
@RestController
@Api(tags = "测试模块")//类名说明
@ApiSupport(author = "ivan@qq.com",order = 1)//整个controller的方法都由ivan开发  接口排序
public class TestController {

    @GetMapping("/admin/hello")
    public String adminHello() {
        return "hello adminHello";
    }

    @GetMapping("/user/hello")
    public String userHello() {
        return "hello userHello";
    }

    @GetMapping("/hello")
    public String hello() {
        return "hello hello";
    }

}
